package com.lyy.lottery.service.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ActivityPrizeStatusEnum {

    INIT(1,"初始化"),

    COMPLETED(2,"已被抽取");

    private final Integer code;
    private final String message;

    public static ActivityPrizeStatusEnum forName(String name){
        for (ActivityPrizeStatusEnum activityStatusEnum : ActivityPrizeStatusEnum.values()){
            if (activityStatusEnum.name().equalsIgnoreCase(name)){
                return activityStatusEnum;
            }
        }
        return null;
    }
}





















